package com.UKIT.airtickets.DB

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "users")
data class User(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val login: String,
    val email: String,
    val password: String,
    @ColumnInfo(name = "last_name")
    val lastName: String = "",
    @ColumnInfo(name = "first_name")
    val firstName: String = "",
    val patronymic: String = "",
    val avatar: String = ""
)


@Entity(tableName = "user_settings")
data class UserSettings(
    @PrimaryKey
    val userId: Long,
    val isNight: Boolean,
    val language: String,
    val notification: Boolean
)

@Entity(tableName = "user_favorites")
data class UserFavorite(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val userId: Long,
    val searchToken: String,
    val startCity: String,
    val startCityCode: String,
    val endCity: String,
    val endCityCode: String,
    val startDate: String,
    val endDate: String,
    val price: Int
)